#coding=utf-8
'''
Created on 2013-10-30

@author: Ben
控制台客户端
'''

import socket
import time

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('localhost', 10000))
while True:
    client.send('test')
    time.sleep(2)